<template>
    <header class="x-header-c">
        <div class="header-title">
            <slot></slot>
        </div>
        <div class="left-button">
            <slot name="left">
                <i class="cubeic-back"></i>
            </slot>
        </div>

        <div class="right-button">
            <slot name="right">
            </slot>
        </div>
    </header>
</template>

<script>
export default {
    components: { }
};
</script>

<style lang="scss" scoped>
.x-header {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color: #edf0f4;
    box-shadow: 0 1px 6px #ccc;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 5;
    .header-title {
        width: 100%;
        height:100%;
        text-align: center;
    }
    .left-button, .right-button {
        position: absolute;
        top: 0;
        height: 100%;
        width: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .left-button {
        left: 0;
    }
    .right-button {
        right: 0;
        .svg-icon {
            font-size: 0.7rem;
        }
    }
    .cubeic-back {
        position: absolute;
        top: 0;
        left: 0;
        padding: 0 15px;
        color: #fc9153;
    }
}
</style>